#ifndef TYPES_ALSA_H
#define TYPES_ALSA_H

#include <CODEPORTS/types.h>
#include <alsa/asoundlib.h>

struct _AUDIO_MODE
{
	int channels, rate, bytes_per_sample;
};

struct _AUDIO
{
	snd_pcm_t *speakers, *microphone;
	struct
	{
		struct
		{
			snd_pcm_hw_params_t *current;
			unsigned int channels, rate, bytes_per_sample;
			int direction;
			unsigned int code;
		} speakers, microphone;
	} mode;
};

#endif
